package day12;

public class T1 {
    public static void main(String[] args){
        T1 t1 = new T1();
        A a = new A();
        a.age = 10;
        t1.test(a);
        System.out.print(a.age);

    }

    private void test(A a){
        // 对象一直都存在在堆栈里面
//        a.age = 20;
        System.out.println(a.age);
    }
}
class A{
   int age;
}
